package cn.tedu.springboot01.proxy;

public interface UserService {

    boolean login(String username, String password);

    String findUser(Integer id);

}

class UserServiceImpl implements UserService {

    @Override
    public boolean login(String username, String password) {
        if ("Tom".equals(username) && "123".equals(password)) {
            System.out.println("用户登录成功！");
            return true;
        }
        System.out.println("用户登录失败！");
        return false;
    }

    @Override
    public String findUser(Integer id) {
        return null;
    }

}
